package net.kunyv.base.service;

import net.kunyv.base.entity.SysLog;
import net.kunyv.base.mapper.SysLogMapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 日志管理接口
 *
 * @author wenq
 * @date 2018-03-08
 */
@Service
public class SysLogService extends BaseService<SysLog> {
    Logger logger = LoggerFactory.getLogger(SysLogService.class);
    @Autowired
    private SysLogMapper sysLogMapper;



    /**
     * 保存日志
     *
     * @param sysLog
     * @author wenq
     * @date 2018-03-13
     */
    public void saveLog(SysLog sysLog) {
        try {
            sysLogMapper.insert(sysLog);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

